home *** CD-ROM | disk | FTP | other *** search
/ Knitting Made Easy / Knitting.iso / App / Patterns.dxr / Internal_10_Go to URL.ls < prev    next >
Encoding:
Text File  |  2002-04-18  |  1.6 KB  |  24 lines

  1. property myURL
  2.  
  3. on getBehaviorDescription me
  4.   return "GO TO URL" & RETURN & RETURN & "Drop this behavior onto a Sprite, the Stage or into the Script Channel of the Score to load the designated HTML Page." & RETURN & RETURN & "If you drop it onto a graphic member, the 'gotoNetPage' command is sent when the user clicks on the sprite (on mouseUp)." & RETURN & RETURN & "If you drop it onto the Stage or the Script Channel of the Score, it will be sent when the playback head leaves the frame (on exitFrame)." & RETURN & RETURN & "When called from a Shockwave movie, this behavior replaces the current page displayed in the web browser.  When called from a projector or in authoring mode, it opens a browser to display the requested page." & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Destination URL - Enter the complete URL of the destination page. Include http://"
  5. end
  6.  
  7. on getBehaviorTooltip me
  8.   return "Use with graphic members or as a frame behavior." & RETURN & RETURN & "When called from a Shockwave movie, this behavior" & RETURN & "replaces the current page displayed in the web" & RETURN & "browser.  When called from a projector or in" & RETURN & "authoring mode, it opens a browser to display" & RETURN & "the requested page." & RETURN & RETURN & "Acts on mouseUp or on exitFrame, depending on" & RETURN & "whether you drag it to a sprite or to the Stage."
  9. end
  10.  
  11. on mouseDown me
  12.   gotoNetPage(myURL)
  13. end
  14.  
  15. on exitFrame me
  16.   if the currentSpriteNum = 0 then
  17.     gotoNetPage(myURL)
  18.   end if
  19. end
  20.  
  21. on getPropertyDescriptionList
  22.   return [#myURL: [#comment: "Destination URL:", #format: #string, #default: "http://www.macromedia.com                  "]]
  23. end
  24.